package po

import "maya-service/model"

type SupervisorWithDrawAgreeReq struct {
	UserId         string  `json:"user_id"`
	SupervisorId   string  `json:"supervisor_id"`   // 督导师ID
	AgreeType      int     `json:"agree_type"`      // 0 结算同意 1 申请转账同意
	WithDrawId     int64   `json:"withdraw_id"`     // 结算时使用的字段  agree_type 为 0 结算使用和提现时使用 数据库ID
	WithdrawAmount float64 `json:"withdraw_amount"` // 提现数额，agree_type 为 1 使用 申请转账同意
}

type WithDrawReq struct {
	UserId       string `json:"user_id"`
	SupervisorId string `json:"supervisor_id"`
}

type WithDrawResp struct {
	SupervisorId string  `json:"supervisor_id"`
	ItemList     string  `json:"item_list"`
	TotalAmount  float64 `json:"total_amount"`
	DeductAmount float64 `json:"deduct_amount"`
}

type UserRecordInfo struct {
	model.UserRecordInfo
	WithDrawData
	UserMoney     float64 `json:"user_money"`
	WithdrawMoney float64 `json:"withdraw_money"`
}

type UserRecordListResponse struct {
	Total int               `json:"total"`
	List  []*UserRecordInfo `json:"list"`
}
